import request from '@/utils/request'

// 预警配件分页查询
export function alarmPartsPage() {
  return request.post('/stock/alarmPartsPage', {
    param: form,
    pageSize: pageSize,
    pageNo: currentPage
  })
}

// 详情
export function getDetail(id) {
  return request.get('/stock/detail/' + id)
}


//获取分页数据 
export function page(form, pageSize, currentPage) {
  return request.post('/stock/page', {
    param: form,
    pageSize: pageSize,
    pageNo: currentPage
  })
}

//获取仓位分页数据 
export function storageSitePage(form, pageSize, currentPage) {
  return request.post('/stock/storageSitePage', {
    param: form,
    pageSize: pageSize,
    pageNo: currentPage
  })
}

//获取仓位配件分页数据 
export function storageSitePartsPage(form, pageSize, currentPage) {
  return request.post('/stock/storageSitePartsPage', {
    param: form,
    pageSize: pageSize,
    pageNo: currentPage
  })
}

// 启用停用
export function changeStatus(id) {
  return request.get('/stock/status/' + id)
}
